package com.ocr;
import java.util.Comparator;


public class F  implements Comparable,Comparator{
	private char _a;
	private int _b;
	private float _c;
	private int _d;
	private float _e;
	
	
	
	public F(char _a, int _b, float _c, int _d) {
		super();
		this._a = _a;
		this._b = _b;
		this._c = _c;
		this._d = _d;
	}
	
	public char b()
    {
        return this._a;
    }
	
	 public int a() {
	        return this._d;
	    }
	
	public int d() {
        return this._b;
    }
	
	public char get_a() {
		return _a;
	}
	public void set_a(char _a) {
		this._a = _a;
	}
	public int get_b() {
		return _b;
	}
	public void set_b(int _b) {
		this._b = _b;
	}
	public float get_c() {
		return _c;
	}
	public void set_c(float _c) {
		this._c = _c;
	}
	public int get_d() {
		return _d;
	}
	public void set_d(int _d) {
		this._d = _d;
	}
	public float get_e() {
		return _e;
	}
	public void set_e(float _e) {
		this._e = _e;
	}
	
	public float e()
    {
        return this._e;
    }

	@Override
	public int compareTo(Object o) {
		F f = (F) o;
        if (this.e() < f.e())
        {
            return 1;
        }
        if (this.e() == f.e())
        {
            return 0;
        }
        return -1;
	}

	@Override
	public int compare(Object o1, Object o2) {
		F f1 = (F) o1;
		F f2 = (F) o2;
		int flag=f1.compareTo(f2);
		return flag;
	}

}
